<script>
	export default {
		globalData: {
			// screenPxWidth: 0,
			// halfScreenPxWidth: 0,
			// oneThirdScreenPxWidth: 0,
		},
		onLaunch: function() {
			console.log('App Launch')
			// this.initWidth()
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		
		methods: {
			initWidth() {
				// let pxWidth = uni.getStorageSync("screenPxWidth")
				// // console.log("intiWidth.....", pxWidth)
				
				// if(!pxWidth) {
				// 	let res = uni.getSystemInfoSync()
				// 	// console.log("getSystemInfoSync:" + JSON.stringify(res))
				// 	this.globalData.screenPxWidth = res.screenWidth * res.pixelRatio
				// 	// console.log("this.globalData.screenPxWidth:", this.globalData.screenPxWidth)
				// 	uni.setStorage({
				// 		key: "screenPxWidth",
				// 		data: this.globalData.screenPxWidth
				// 	})
				// } else {
				// 	this.globalData.screenPxWidth = pxWidth
				// }
				// this.globalData.halfScreenPxWidth = pxWidth / 2
				// this.globalData.oneThirdScreenPxWidth = pxWidth / 3
				// console.log("pxWidth:", pxWidth, " ", this.globalData.halfScreenPxWidth, " ", this.globalData.oneThirdScreenPxWidth)
			}
		}
	}
</script>

<style>
	/*每个页面公共css */
</style>
